<%@ taglib prefix="s" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="my" tagdir="/WEB-INF/tags"%>
<div>
	<h1>${spitter.username}'sprofile page</h1>

	<img src="<s:url value="/resources/images/avatars/"/>${spitter.id}.jpg"
		class="profilePicture"
		onError="this.src='<s:url value="/resources/images/avatars"/>/default.jpg';" />
	<ul style="margin-left: 20px;">
		<li>Name: ${spitter.fullName}</li>
		<li>Email: ${spitter.email}</li>
	</ul>

	<h2>Recent spittles:</h2>

	<table>
		<c:forEach items="${spittleList}" begin="0" end="2" var="spittle">
			<my:spittle spittle="${spittle}" />
		</c:forEach>
	</table>
</div>